package com.linkage.bookshop.model;

import java.util.Set;

public class User {
	private Integer id;
	private String nickname;
	private String password;
	private Set<Role> roles;
	private String username;
	private Double wealth;
	private boolean nonlocked;
	
	public boolean isNonlocked() {
		return nonlocked;
	}
	public void setNonlocked(boolean nonlocked) {
		this.nonlocked = nonlocked;
	}
	public Integer getId() {
		return id;
	}
	public String getNickname() {
		return nickname;
	}
	public String getPassword() {
		return password;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public String getUsername() {
		return username;
	}
	public Double getWealth() {
		return wealth;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public void setWealth(Double wealth) {
		this.wealth = wealth;
	}
}
